import service from "../utils/request";

// 获取轮播图列表

export const getBannerListAPI = (params) => {
    return service.get('/api/carousel', { params })
}

// 上传轮播图
export const saveBannerAPI = (data) => {
    return service.post('/api/carousel', data)
}

// 删除
export const deleteBannerAPI = (id) => {
    return service.delete(`/api/carousel/${id}`)
}